package views;

import java.awt.Dimension;

import javax.swing.JPanel;

public class View extends JPanel{
	MainFrame mf;
	int width;
	int height;
	public View(MainFrame mf,int width,int height){
		this.mf = mf;
		this.width = width;
		this.height = height;
		this.setPreferredSize(new Dimension(width,height));
		this.setFocusable(true);
	}
	public void resizeWindow(){
		mf.setSize(width,height);
		mf.setLocationRelativeTo(null);
	}
}
